import requests

url = 'https://github.com/halon1989'

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36',
    "cookie": "_octo=GH1.1.797423498.1647431436; logged_in=no; _gh_sess=XsRnIA56w69SskArWe8oW3ouG%2BTfE6e3PgX2LmJr8U%2FCZ5j0Mgm6WM0l3bCGj5lwx%2FxVNRxhsy6XOE1WjciqvH%2FFd6eTX1AWqHDq5CABDFxfvwOQW5OeeVp5635ZF%2FSEGOH%2B6c%2FqS8S4hzlFIcklIeV9YUneJrZzr0RRh44Ww07sjPdBJ6SW0YHOYdwGr9hTT4elaWgX5qDJVKE3%2B8J8MgpL7cBtgFJYE%2BKwDONKPqrmZvuNQz5BhwtelZzQWhabEw4ziSERbRjS3NrLyC58ng%3D%3D--bdZZLSaFleejNXBv--bpLSKzxMUy6%2BT7Unr5th9g%3D%3D; tz=Asia%2FShanghai"
}
response = requests.get(url, headers=headers, verify=False)

# print(response.content.decode())

with open('halon1989.html', 'w', encoding='utf-8') as f:
    f.write(response.content.decode('utf-8'))
